import { postService } from '.'
import { PORT1 } from '../config/net.config'
import { Upload } from '/@/api/interface/index'
/**
 * @name 文件上传模块
 */
// 图片上传
export const uploadImg = (params: FormData) => {
  return postService<Upload.ResFileUrl>(`${PORT1}/Tools/UploadFiles`, params, 'multipart')
}

// 视频上传
export const uploadVideo = (params: FormData) => {
  return postService<Upload.ResFileUrl>(`${PORT1}/file/upload/video`, params, 'multipart')
}
